const { SerialPort } = require('serialport')

async function getPortList() {
	let ports
	ports = await SerialPort.list()
	return ports
}

async function main() {
	let ports
	ports = await getPortList()
	console.log(ports)
}
main()
